package demo1;

public class Student {
    //实例成员变量
    private static String classes;
    private String name;
    private int age;

    //实例代码块
    {
        this.name = "java";
        this.age = 12;
    }
    //静态代码块
    static {
        classes = "2025";
    }
    static {
        classes = "java2025";
    }

    public static void main(String[] args) {
        System.out.println(Student.classes);
    }
}
